import type { UploadFile } from 'ant-design-vue';

// 扩展UploadFile类型，添加md5字段
export interface ImageUploadFile extends UploadFile {
  md5?: string;
}

export interface ImageUploadProps {
  modelValue?: string | string[];
  multiple?: boolean;
  maxCount?: number;
  maxSize?: number; // MB
  listType?: 'text' | 'picture' | 'picture-card';
  disabled?: boolean;
}

export interface ImageUploadEmits {
  'update:modelValue': [value: string | string[]];
  'change': [fileList: ImageUploadFile[]];
} 